//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package templet;

public class Utils {
    public Utils() {
    }
    
    public static String getClassName(String str) {
        String s0 = str.substring(0, 1).toUpperCase();
        return s0 + str.substring(1);
    }
    
    public static String getTableName2(String tableName) {
        tableName = tableName.toLowerCase();
        int index = tableName.indexOf("_");
        if (index == -1) {
            return tableName;
        } else {
            String name = tableName.substring(index + 1);
            return getColumnName2(name);
        }
    }
    
    public static String getColumnName2(String name) {
        while(true) {
            int i = name.indexOf("_");
            System.out.println("i=" + i);
            if (i == -1) {
                return name;
            }
            
            String n = name.substring(i + 1, i + 2).toUpperCase();
            name = name.substring(0, i) + n + name.substring(i + 2);
        }
    }
}
